#!/bin/sh
#define webapp_base
WEBAPPS='/home/jinloes/tomcat-base/webapps'
PROJECT_HOME='/home/jinloes/src/test/senior-project-webfit/senior-project-webfit/webfit'

sudo /usr/lib/tomcat7/bin/shutdown.sh

sudo rm -rf $WEBAPPS/webfit*

cd $PROJECT_HOME
buildr clean package

cp target/webfit*.war $WEBAPPS/webfit.war

sudo /usr/lib/tomcat7/bin/startup.sh
